/* 首页接口 */
import request from "../request"

export function chargingLoadDay(regId) {
  return request({
    url: `operate/panoramicMonitoring/chargingLoadDay/${regId}`,
    method: 'GET'
  })
}
export function getAssetInfo(regId) {
  return request({
    url: `operate/panoramicMonitoring/getAssetInfo/${regId}`,
    method: 'GET'
  })
}
export function monthChargePower(regId) {
  return request({
    url: `operate/panoramicMonitoring/monthChargePower/${regId}`,
    method: 'GET'
  })
}
export function usageDistribution(regId) {
  return request({
    url: `operate/panoramicMonitoring/usageDistribution/${regId}`,
    method: 'GET'
  })
}

export function usesProportion(regId) {
  return request({
    url: `operate/panoramicMonitoring/usesProportion/${regId}`,
    method: 'GET'
  })
}
export function queryChargRankingTop10(regId) {
  return request({
    url: `largeScreen/equipment/queryChargRankingTop10/${regId}`,
    method: 'GET'
  })
}
export function queryChargStaRankingTop10(regId) {
  return request({
    url: `largeScreen/equipment/queryChargStaRankingTop10/${regId}`,
    method: 'GET'
  })
}
export function queryMapData(regId) {
  return request({
    url: `operate/panoramicMonitoring/queryMapData/${regId}`,
    method: 'GET'
  })
}

// 累计营收 累计充电次数  会员个数
export function getTopChargeInfo() {
  return request({
    url: `/charge/chagRecCY/topChargeInfo`,
    method: 'get',
  })
}
// 近12个月订单/营业收入
export function getDistribution(param) {
  return request({
    url: `/charge/chagRecCY/orderAndBusinessDistribution/${param.regId}/${param.type}`,
    method: 'get',
  })
}

// 根据当前登录用户查看机构下前十活跃用户
export function queryTopTenUser(data) {
  return request({
    url: '/statisticalAnalysis/operationStatistics/queryTopTenUser',
    method: 'POST',
    data: data || {}
  })
}
